import { useRoutes } from "react-router-dom";

import routes from "./router";
import AuthRouter from "./components/authRouter";

function App() {
  const Element = () => useRoutes(routes);
  return (
    <div>
      {/* 鉴别token */}
      <AuthRouter>
        <Element />
      </AuthRouter>
    </div>
  );
}

export default App;
